package com.caine.annotation;

import java.lang.annotation.Annotation;

/**
 * @Author: CaineZhu
 * @Description:
 * @Date: Created in 17:56 2020/11/5
 * @Modified By:@Modified By:注解可以被继承(注解需要@Inherited 抽象类也可以)但是不能被接口的实现类继承
 */
public class TestBImpl implements ITestB {
    @Override
    public void do1() {
        System.out.println("true = " + true);
    }

    public static void main(String[] args) {
        for (Annotation annotation : TestBImpl.class.getAnnotations()) {
            System.out.println("annotation = " + annotation);
        }
    }
}
